<include file="Public/head" />
<div class="container">
	<!-- 修改日志 -->
	<form class="form-horizontal" action="{:U('Admin/Index/mod')}" method="post">
		<input type="hidden" name="id" value="{$data[id]}">
		<div class="form-group">
			<label class="col-sm-3 control-label">日志标题</label>
			<div class="col-sm-7">
				<input type="text" name="title" class="form-control" placeholder="输入标题" value="{$data[title]}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">选择分类</label>
			<div class="col-sm-7">
				<select id="choosecate" name="category">
					<option value="0">--选择分类--</option>
					<foreach name="cate" item="v">
						<option value="{$v[id]}">{$v[cate_name]}</option>
					</foreach>
				</select>
				<input id="addcate" type="checkbox" name="addcategory">新增分类
				<input type="text" name="newcategory" id="newcate" disabled>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">日志内容</label>
			<div class="col-sm-7">
				<script id="content" type="text/plain" name="content"></script>
				<script type="text/javascript">
					var ue = UE.getEditor("content");
					// console.log(ue);
					ue.ready(function(){
						ue.setContent('{$data['content']|html_entity_decode}');
					});
				</script>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">添加标签</label>
			<div class="col-sm-7">
				<input type="text" name="label" class="form-control" placeholder="添加标签" value="{$data[label]}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">作者</label>
			<div class="col-sm-7">
				<input type="text" name="author" class="form-control" placeholder="kame" value="{$data[author]}">
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-6 text-center">
				<input type="submit" value="完成">
			</div>
			<div class="col-sm-6 text-center">
				<input type="reset" value="重置">
			</div>
		</div>
	</form>
</div>